home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 2 / Gold Medal Software Volume 2 (Gold Medal) (1994).iso / clipart / office.arj / PKZIP.DOC next >
Text File  |  1989-02-10  |  73KB  |  1,673 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                                                                   |
  7.                                                                   |
  8.                                                                   |
  9.                                                          PKware   |
  10.                                                                   |
  11.                                     The file compression system   |
  12.                                                           where   |
  13.                                          SPEED and SMALL SPACES   |
  14.                                           make a BIG difference   |
  15.                                                                   |
  16.                                                                   |
  17.                                                                   |
  18.                                                                   |
  19.                                                           PKZIP   |
  20.                                                         PKUNZIP   |
  21.                                                           PKSFX   |
  22.                                                                   |
  23.                                                                   |
  24.                                                                   |
  25.                                                                   |
  26.  
  27.  
  28.  
  29.  
  30.               9 Files are included in PKZ090.EXE
  31.  
  32.  
  33.       PKZIP.EXE  Main compression program.
  34.     PKUNZIP.EXE  Main extraction program.
  35.  
  36.     MAKESFX.COM  Starts the process of creating self-extracting files
  37.     ZIP2EXE.EXE  Used in creating self-extracting files.
  38.  
  39.      README.DOC  General Information.
  40.    DEDICATE.DOC  Dedication of file format and extension to the public domain.
  41.       ORDER.DOC  Registration information and order form.
  42.      MANUAL.DOC  Reference manual for PKware File Compression Programs.
  43.     APPNOTE.TXT  Technical background material.
  44.     RELEASE.DOC  Additional release notes for this version of the software.
  45.  
  46.  
  47. PKWARE ENHANCEMENTS
  48.  
  49. PKware Version 0.90 (PKZIP/PKUNZIP) Compression Programs
  50.  
  51.  
  52. 1.  FAST !  PKZIP/PKUNZIP is even faster.
  53.  
  54. 2.  Special file handling capabilities will automatically recurse through
  55.     subdirectories and store pathnames within a ZIP file.
  56.  
  57. 3.  Extra compression options allow you to specify the method of
  58.     compression (shrinking or reducing) to be employed.
  59.  
  60. 4.  An easier method of creating self-extracting executable files.
  61.  
  62. 5.  A file that has been created using the self-extracting file commands
  63.     will be treated as a normal ZIP file.  All PKZIP and PKUNZIP
  64.     (except -v) options will be valid.
  65.  
  66. 6.  Options can be placed in any order on the command line, adding more
  67.     flexibility when typing the commands.
  68.  
  69. 7.  Files contained in a ZIP file can be sorted and viewed by any of the
  70.     following: compression ratio, size, date, or name.
  71.  
  72. 8.  The time and date of a ZIP file can be set to the time and date of
  73.     the latest file contained within the ZIP file.
  74.  
  75. 9.  Increased printer options for PKUNZIP.
  76.  
  77. 10. A new  -o  option which will automatically overwrite files being
  78.     extracted when another same-named file already resides on your disk.
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.                                Contents
  86.  
  87.  
  88.  1.  INTRODUCTION TO FILE COMPRESSION
  89.      A.  File Compression . . . . . . . . . . . . . . . . . .
  90.      B.  Two Related Programs - PKZIP & PKUNZIP . . . . . . .
  91.      C.  File Compression Terms . . . . . . . . . . . . . . .
  92.      D.  Use of Hard and Floppy Disk Systems. . . . . . . . .
  93.      E.  General Rules and Default Settings . . . . . . . . .
  94.  
  95.  
  96.  2.  SUPER QUICK
  97.      A.  QUICK START - Extracting a File from a BBS . . . . .
  98.      B.  Use of PKware in Telecommunications - BBS  . . . . .
  99.  
  100.  
  101.  3.  PKZIP - COMPRESS FILES INTO ZIP FILES
  102.      A.  QUICK START - Create a ZIP file. . . . . . . . . . .
  103.      B.  Description of Command Options . . . . . . . . . . .
  104.  
  105.  
  106.  4.  PKUNZIP - RECONSTRUCT & EXTRACT ZIP FILES
  107.      A.  QUICK START - Reconstruct a ZIP File . . . . . . . .
  108.      B.  Description of Command Options . . . . . . . . . . .
  109.  
  110.  
  111.  5.  PK2EXE - SELF-EXTRACTION UTILITY . . . . . . . . . . . .
  112.  
  113.  
  114.  6.  SPECIAL HANDLING PROCEDURES
  115.      A.  How a ZIP File is Made . . . . . . . . . . . . . . .
  116.      B.  Use of a RAM Disk with PKZIP . . . . . . . . . . . .
  117.      C.  LAN - Local Area Network Support . . . . . . . . . .
  118.      D.  Creating a Pre-Selected File List. . . . . . . . . .
  119.      E.  Batch File Processing  . . . . . . . . . . . . . . .
  120.  
  121.  
  122.  7.  REGISTRATION AND BACKGROUND
  123.      A.  Technical Support  . . . . . . . . . . . . . . . . .
  124.      B.  Registration . . . . . . . . . . . . . . . . . . . .
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.                                                                   |
  132.                                                                   |
  133.                                                                   |
  134.                                  INTRODUCTION TO FILE COMPRESSION |
  135.                                                                   |
  136.                                                  File Compression |
  137.                            Two Related Programs - PKZIP & PKUNZIP |
  138.                                            File Compression Terms |
  139.                               Use of Hard and Floppy Disk Systems |
  140.                                General Rules and Default Settings |
  141.                                                                   |
  142.                                                                   |
  143.                                                                   |
  144.  
  145.                           FILE COMPRESSION
  146.  
  147.  
  148. The term "compression" means to reduce in size.   Computer file
  149. compression refers to reducing files in size so that they take up less
  150. storage space on disk.  PKZIP will perform this reducing process quickly
  151. and easily.  The compressed files are then stored in a special file
  152. called a ZIP file.
  153.  
  154.      ZIP files have three distinct benefits:
  155.  
  156.          1.  They use less disk space than normal files.  Storing files in
  157.              compressed form increases the life and storage availability of
  158.              your expensive hard disk.
  159.  
  160.          2.  Many individual files can be compressed into a single ZIP
  161.              file.  This makes file group identification, copying, and
  162.              transporting faster and easier.
  163.  
  164.          3.  Compressed files travel faster via modem which reduces
  165.              telecommunication transmission and reception.  Many BBS
  166.              (computer bulletin board services) use PKware files as their
  167.          standard.  This enables the BBS to store more files and you
  168.          to have transfer files faster and easier.
  169.  
  170.  
  171.               TWO RELATED PKWARE PROGRAMS - PKZIP & PKUNZIP
  172.  
  173.      Together, PKZIP and PKUNZIP handle all of your file compression needs.
  174.  
  175. PKZIP is the program that compresses files.  This shrinking process is
  176. often referred to as data compression.  Terms you will see during the
  177. compressing process are Storing, Shrinking, and Reducing.  PKZIP also
  178. handles all file maintenance including adding and deleting files, as
  179. well as reporting on technical information from within the compressed
  180. file.
  181.  
  182. PKUNZIP is the program that reconstructs or extracts compressed files.
  183. In addition to reconstructing a complete ZIP file, it can selectively
  184. release individual files, show files on the screen for fast viewing, or
  185. print them out on a printer.
  186.  
  187.  
  188.                           FILE COMPRESSION TERMS
  189.  
  190.      FILE COMPRESSION is the process of reducing a file's size.  This is
  191.      sometimes referred to as data compressing.
  192.  
  193.      FILE means the SINGLE name that identifies information on your floppy
  194.      disk or hard drive.
  195.  
  196.      A ZIP FILE holds file information that has been reduced in size for
  197.      better storage.  It is sometimes called a compressed file or a
  198.      library file.
  199.  
  200.      A ZIP FILE can be made up of either one or more files compressed
  201.      and stored together under one file name.
  202.  
  203.  
  204.  ______________________________________________________________________
  205.  |                                                                    |
  206.  |        A ZIP file contains one or more files.                      |
  207.  |                                                                    |
  208.  |                                                                    |
  209.  |    MANUAL.ZIP  contains -->  chap1.txt  toc.txt  app.txt  cov.txt  |
  210.  |                                                                    |
  211.  |    BIG.ZIP     contains -->  Huge.Wks                              |
  212.  |                             This is a very large worksheet that    |
  213.  |                             has been shrunk in size for better     |
  214.  |                             storage and faster telecommunications. |
  215.  |____________________________________________________________________|
  216.  
  217.  
  218.      FILE RECONSTRUCTION  or  FILE EXTRACTION  refers to the process of
  219.      recreating files that have been previously compressed.
  220.  
  221.  
  222.  
  223.              USING PKWARE WITH HARD AND FLOPPY DISK SYSTEMS
  224.  
  225. PKware works BEST on a hard disk system.
  226.  
  227.  1.  Even though you are making files smaller, the process used to shrink
  228.      them can BRIEFLY DOUBLE the storage space needed.  When a ZIP file is
  229.      being modified (e.g. files being added), the process creates a new
  230.      ZIP file which will be used as a REPLACEMENT for the old version.
  231.      Both the OLD and the NEW versions will be on your disk until just
  232.      prior to the completion of the process.
  233.  
  234.  2.  When you reconstruct a ZIP file, the amount of space needed to
  235.      hold that file can double.  A large hard disk drive normally insures
  236.      that enough storage area is available.
  237.  
  238.      Many compressed files are stored on floppy disks.  The limit to
  239.      floppy storage is the number of characters your floppy system will
  240.      hold:
  241.  
  242.           Standard double density floppy     360K
  243.           High density floppy                1.2 meg
  244.           3-1/2" floppy                      .7 or 1.4 meg
  245.  
  246.      You may have problems either ADDING files to a ZIP file stored on a
  247.      floppy disk, or reconstructing files to a floppy disk system when
  248.      the number of characters in the ZIP file is more than 50% of the
  249.      available storage space on the floppy disk.
  250.  
  251. Consider a standard floppy disk system:
  252.  
  253.    ____________________________________________________________________
  254.    |                                                                  |
  255.    |               Standard Floppy Disk Drive of 360K                 |
  256.    |                                                                  |
  257.    |  A:> BigFile.ZIP  has 250,000 characters                         |
  258.    |                                                                  |
  259.    |           1.  In order to ADD files to BigFile.ZIP, you need     |
  260.    |               500,000 of space.  The extra space is used to      |
  261.    |               hold a NEW updated ZIP file created BEFORE the     |
  262.    |               old ZIP file is deleted.                           |
  263.    |                                                                  |
  264.    |           2.  When BigFile is reconstructed it might require     |
  265.    |               400,000 of space, but the available space on the   |
  266.    |               disk restricts it to 360,000.                      |
  267.    |__________________________________________________________________|
  268.  
  269.  
  270.      There are a number of ways to avoid the limitations.  A thorough
  271.      knowledge of PKware Programs will show you how to:
  272.  
  273.      1.  Selectively reconstruct files from a ZIP file.  Instead of
  274.          extracting everything at once, you can view file size information
  275.          and then select SPECIFIC files to be reconstructed to a floppy.
  276.  
  277.      2.  If you have two floppy drives, create the ZIP file file on your
  278.          second disk drive so that you have the full 360K available to you.
  279.  
  280.      3.  Use the special  -b  command option, which routes the NEW file to
  281.          an alternate disk drive during the compressing process then copies
  282.          it back to the floppy disk upon completion.
  283.  
  284.  
  285.                    GENERAL RULES AND DEFAULT SETTINGS
  286.  
  287.  1.  PKware programs MUST be located in:
  288.  
  289.      A.  The drive you are working on, OR . . .
  290.  
  291.      B.  Any directory accessible through the PATH= setting.
  292.  
  293.          C:> PATH=C:/Utils
  294.  
  295.          In this example, PKware is in the Utils Directory.  The computer
  296.          will find and execute the program even though you are in a
  297.          different directory or drive because any commands entered will be
  298.          run through the PATH.  Consult your MS-DOS documentation for more
  299.          information.
  300.  
  301.      C.  Any directory through the use of PATH notation if you are using
  302.          MS-DOS 3.0 or later.
  303.  
  304.          C:>B:PKZIP  -a  OldFile.ZIP  *.*     PKZIP is located on the
  305.                                               B:> drive
  306.  
  307.          C:>\UTILS\PKZIP  -v  Stuff.ZIP       PKZIP is located in \UTILS
  308.                                               as indicated in the PATH
  309.                                               notation
  310.  
  311.  2.  All PKware program commands are typed at the prompt.
  312.  
  313.  3.  Typed information can be in CAPS, lower case, or a mixture.
  314.  
  315.  4.  The DEFAULT is  *.*  or ALL FILES when specific files are not named
  316.      (except for the  -d  delete files option).
  317.  
  318.  5.  It is NOT necessary to type the extension  .ZIP  when processing a
  319.      ZIP file, it will be assumed.  The extension is used in this
  320.      documentation for clarity.
  321.  
  322.  
  323.  6.  A help screen is displayed when you type the program name at the
  324.      prompt then press <enter>.  Also typing  -h  on the command line
  325.      will call up the help screen.
  326.  
  327.             C:>PKZIP      enter       gives you HELP
  328.             C:>PKUNZIP    "            "    "    "
  329.  
  330.  7.  The notation  PKUNZIP *  or  *.ZIP  will reconstruct all ZIP files
  331.      within the given area.
  332.  
  333.  8.  During the reconstructing process, the notation *.* will tell
  334.      PKUNZIP to attempt to reconstruct ALL files whether they are ZIP
  335.      files or not.  This would waste time, but will not damage any files.
  336.  
  337.  9.  The default area for the temporary second ZIP file that is created
  338.      while the original is being updated, is the same path and directory
  339.      location as the original ZIP file.  As this can cause a space
  340.      shortage on a floppy disk, the -b option is recommended.  (See
  341.      Section 3)
  342.  
  343. 10.  The compressing function will STOP if specific, pre-specified files
  344.      are not found.
  345.  
  346. 11.  All MS-DOS file handling procedures can be used:
  347.  
  348.                Filename.ext          Full file name designations
  349.  
  350.                   *Name.ext          Names with wild card markers
  351.                       *.ext
  352.                Filename.*
  353.                       *.*
  354.                File?ame.ext
  355.  
  356.              A:filename.ext          Disk drive and file name
  357.  
  358.              C:\Lotus\March\*.*      Disk drive and PATH locations
  359.  
  360.  
  361.  
  362.  
  363.                                                                   |
  364.                                                                   |
  365.                                                                   |
  366.                                                       SUPER QUICK |
  367.                                                                   |
  368.             QUICK START- Extracting a File from a BBS             |
  369.                         Use of PKware in Telecommunications - BBS |
  370.                                                                   |
  371.                                                                   |
  372.                                                                   |
  373.                                                                   |
  374.                                                                   |
  375.                                                                   |
  376.  
  377. _________________________________________________________________________
  378. |                                                                       |
  379. |                              QUICK START                              |
  380. |                                                                       |
  381. |       Reconstructing a ZIP File from a BBS                            |
  382. |                                                                       |
  383. |     A BBS is a Computer Bulletin Board Service.  Those who use this   |
  384. |     type of service can acquire programs or other information in the  |
  385. |     form of compressed files.  These files are picked up via a modem. |
  386. |     In order to use these files, they must be (reconstructed or       |
  387. |     extracted) through the use of PKUNZIP.                            |
  388. |                                                                       |
  389. |     Follow this example to UNZIP your files:                          |
  390. |                                                                       |
  391. |                                                                       |
  392. |     C:>PKUNZIP  A:AnyFile.XYZ   C:                                    |
  393. |       _______  _____________   ___                                    |
  394. |         |         |             |                                     |
  395. |         |         |             Drive/Path to locate the files in     |
  396. |         |         |                                                   |
  397. |         |         Name and Location of the file being extracted       |
  398. |         |         > Use any MS-DOS file notation                      |
  399. |         |                                                             |
  400. |         the UNZIP command                                             |
  401. |         >  The command MUST be located at the prompt position         |
  402. |                or                                                     |
  403. |         >  The program can be located elsewhere through the           |
  404. |            PATH= setting                                              |
  405. |_______________________________________________________________________|
  406.  
  407.  
  408.  
  409.                 USE OF PKWARE IN TELECOMMUNICATIONS - BBS
  410.  
  411.  
  412. Compressed library files store much information into a relatively
  413. small space.  PKware file compression methods are the standard used by
  414. many successful BBS systems across the country.
  415.  
  416. Compressed files, known as ZIP files in PKware notation, created through
  417. PKware, assure you of the highest level of file accuracy.  PKware
  418. compressed files are the most compact, meaning they take less
  419. telecommunications time to deliver, PLUS PKware is FAST!  According to
  420. benchmarks published in major computer magazines, you will be able to
  421. manipulate your compressed files many times faster with PKware as
  422. compared to similar programs on the market.  PKware provides YOU with
  423. the highest standards of the industry.
  424.  
  425. If you find the software fast, easy, and convenient to use, a
  426. registration of $25 would be appreciated.  If you send $47 or more, you
  427. will receive a diskette with documentation for the next version of the
  428. software, when available.  Please state the version of the software that
  429. you currently have.  Send registrations to:
  430.  
  431.                               PKware, Inc.
  432.                        7545 N. Port Washington Rd.
  433.                                Suite 205
  434.                           Glendale, WI  53217-3422
  435.  
  436.  
  437.                                                                   |
  438.                                                                   |
  439.                                                                   |
  440.                             PKZIP - COMPRESS FILES INTO ZIP FILES |
  441.                                                                   |
  442.                                   QUICK START - Create a ZIP file |
  443.                                    Description of Command Options |
  444.                                                                   |
  445.                                                                   |
  446.                                                                   |
  447. QUICK START - CREATE A ZIP FILE
  448.  
  449. This section will describe some simple examples, illustrating the
  450. command format for creating a ZIP file.
  451. _________________________________________________________________________
  452. |                                                                       |
  453. |                             QUICK START                               |
  454. |                         How to compress files                         |
  455. |                                                                       |
  456. |    Use PKZIP to reduce or compress the size of your files.  All       |
  457. |    compressed files are stored in a ZIP file, also know as a          |
  458. |    Library file, while in their compressed state.                     |
  459. |                                                                       |
  460. |    The benefits of Compressing are:                                   |
  461. |                                                                       |
  462. |        - Better use of disk storage area                              |
  463. |        - Faster telecommunication file transfer via a modem           |
  464. |        - Collecting numerous files under a single file name           |
  465. |                                                                       |
  466. |    PKZIP uses 4 areas typed at the prompt:                            |
  467. |                                                                       |
  468. |    1.  The actual program name           PKZIP                        |
  469. |                                                                       |
  470. |    2.  The command options               letter commands              |
  471. |                                          example:  -a = add files     |
  472. |                                                                       |
  473. |    3.  The name YOU give your            NewFile  and  LOCATION       |
  474. |        ZIP file and its location.                                     |
  475. |        If no extension specified,                                     |
  476. |        default = .ZIP.                                                |
  477. |                                                                       |
  478. |    4.  The files that get compressed     any MS-DOS file notation     |
  479. |        into the ZIP file.                                             |
  480. |                                                                       |
  481. | Examples:                                                             |
  482. |                                                                       |
  483. |   C:>PKZIP  -a   A:NEWFILE   *.*                                      |
  484. |                                                                       |
  485. |   This will create a file named NEWFILE.ZIP.  The .ZIP extension will |
  486. |   be added automatically when the ZIP file has been completed.  In    |
  487. |   this example, all of the files in the current directory will be     |
  488. |   compressed into NEWFILE.ZIP.                                        |
  489. |                                                                       |
  490. |                                                                       |
  491. |   C:>PKZIP  -a  B:BUDGET   \LOTUS\Checks.Wks  \LOTUS\Money.Wks        |
  492. |                                                                       |
  493. |   This will create a ZIP file named BUDGET.ZIP on the B drive.  It    |
  494. |   will contain two files, both currently located in the C:\LOTUS      |
  495. |   directory.                                                          |
  496. |                                                                       |
  497. |   C:>PKZIP  -f  FILES   *.TXT                                         |
  498. |                                                                       |
  499. |   This will update an existing ZIP file named FILES.ZIP.  All of the  |
  500. |   files with a .TXT extension that already exist in the ZIP file, and |
  501. |   that are also dated later then those already within FILES.ZIP, will |
  502. |   be updated.                                                         |
  503. |_______________________________________________________________________|
  504. Description of Command Options
  505.  
  506.  
  507. The commands used in creating a ZIP file will be explained in detail in this section.  You will find that the new command format is much more flexible and easier to use.  Listed below is a summary of important facts to keep in mind while using PKZIP.
  508.  
  509. - The command options can generally be placed anywhere on the command  line.
  510.  
  511. - The first filename listed on the command line will be interpreted as the
  512.   ZIP file.
  513.  
  514. - The command can be typed using either upper case, lower case, or any
  515.   combination.
  516.  
  517. - All command options for the software must be preceded by a '-' character
  518.   or the MS-DOS switch character (usually '/').
  519.  
  520. - Most options except where noted can be combined (i.e. "-x -y"
  521.   or "-xy").
  522.  
  523. - The default values for the command line are as follows:
  524. - If no options are entered, the default is '-a', the add file option.
  525. - If no extension is specified for the ZIP file the .ZIP extension will
  526.   be used.
  527. - If no location is listed for the ZIP file, it will be located in the
  528.   current directory.
  529. - If no file specs (filenames, with or without wildcards) are listed, the
  530.   default is *.* (unless the  -d option is being used).
  531.  
  532.  
  533. The following table lists all the options valid with the PKZIP command.  A
  534. brief summary is also given in the table.  The options are explained in
  535. detail, along with programming examples, following the table.
  536.  
  537.  
  538. Table 3-1   PKZIP Command Options
  539.  
  540. Option         Summary
  541.  
  542. -a             Adds files to ZIP file.
  543.  
  544. -b[path]       Creates a temporary ZIP file at the specified alternate
  545.                location.  This temporary file is used only in the
  546.                creation of the ZIP file, and will be automatically
  547.                deleted when the process is complete.
  548.  
  549. -c             Adds file comments to individual files within the ZIP
  550.                file.  Not implemented in first release.
  551.  
  552. -d             Deletes the specified files from the ZIP file.
  553.  
  554. -e[a,b][n]     Specifies extra compression method.
  555.  
  556. -f             Freshens files in the ZIP file.
  557.  
  558. -g             Encrypts files in the ZIP file.  Not implemented in
  559.                first release.
  560.  
  561. -h             Calls up a help screen.
  562.  
  563. -i             Backs up only the files that were not backed up the
  564.                last time.
  565.  
  566. -l             Displays the license screen.
  567.  
  568. -m             Adds files to the ZIP file and automatically deletes
  569.                the original or source files.
  570.  
  571. -o             Sets time and date of the ZIP file to the time and date
  572.                of the latest file contained in the ZIP file.
  573.  
  574. -p             Stores relative paths with the filenames in the ZIP
  575.                file.  Should be used with -r option below.
  576.  
  577. -r             Recurses subdirectories from the specified directories.
  578.  
  579. -u             Updates the ZIP file.
  580.  
  581. -v[t][r/s/d/n] Views technical information about files in the ZIP
  582.                file.  The files can be sorted by compression Ratio,
  583.                Size, Date, or alphabetically by Name.
  584.  
  585.  
  586. There are several size factors you must be aware of when using the PKZIP
  587. command.  A ZIP file can hold any number of files subject to the storage
  588. size of your disk.  You NEED unused storage space at least equal to the
  589. size of the existing ZIP file in order to complete any updating process.
  590.  
  591.  
  592. For example, if the ZIP file to be updated is currently 250K, you need
  593. 250K for actual storage space and another 250K for the updating process.
  594. This is because PKZIP does not delete the original ZIP file until the
  595. new updated ZIP file has been created.  So at the instant the new
  596. updated ZIP file is completed the original ZIP file will still exist.
  597. Therefore, you would need disk storage space twice the actual size of
  598. the ZIP file.
  599.  
  600. If this poses a problem to you, it can be counteracted by using the -b
  601. command.  This process is explained in greater detail later in this
  602. section.
  603.  
  604. This section will give a detailed explanation of the command options
  605. used in the PKZIP command.  Recall that except where noted, several
  606. options can be combined on the command line, and the options can be
  607. placed in any order.
  608.  
  609. The command options are explained in groups determined by function.  The
  610. options pertaining to adding or updating ZIP files are explained first,
  611. followed by the delete option, view options and miscellaneous options.
  612.  
  613.  
  614. -a  Add files to a ZIP file
  615.  
  616.     This command will add files to either a NEWLY CREATED or EXISTING
  617.     ZIP file.  Same-name files will overwrite those already in the ZIP
  618.     file regardless of which has the latest date.  This is the default
  619.     option if no other options are specified.
  620.  
  621.      A:>PKZIP  -a  Arrange   Flowers.Txt  Pictures.Wks  Pots.Dbs
  622.  
  623.     Once the program is finished creating a new ZIP file, the extension
  624.     .ZIP  will be added to "Arrange" making it Arrange.ZIP
  625.  
  626.  
  627. -u  Update existing ZIP file
  628.  
  629.     The existing ZIP file will be updated with files only if they are
  630.     not currently in the ZIP file, or if they are dated later than those
  631.     with the same name already in the ZIP file.
  632.  
  633.     Although this command is similar to the  -a  Add command, it has an
  634.     update SAFEGUARD.  It will overwrite existing compressed files ONLY
  635.     if the selected files have the most recent time and date.
  636.  
  637.      C:>PKZIP  -u  OldFile.ZIP   *.Txt  Money.Wks  A:Funds.Wks
  638.  
  639.  
  640. -f  Freshen files in ZIP file.
  641.  
  642.     This option updates files that already exist in the ZIP file with
  643.     same-named files with later times and dates.
  644.  
  645.     The Freshen option is limited to working with files that ALREADY
  646.     exist in the ZIP file.  It will overwrite existing compressed files
  647.     ONLY if the files have been updated since being added to the ZIP
  648.     file.  It will NOT add new files.
  649.  
  650.      C:>PKZIP  -f  Picky.ZIP  *.*
  651.  
  652. -i  Selective BACKUP feature
  653.  
  654.     This option will add only those files to the ZIP file that were NOT
  655.     backed up the last time.  If the program returns the notation "No
  656.     files found", this means that everything had been previously backed
  657.     up.
  658.  
  659.      C:\PKWARE> PKZIP -i  allfiles.zip
  660.  
  661.     In this example, all the files in the ZIP file 'allfiles' that had
  662.     not been previously backed up, will be backed up.
  663.  
  664.  
  665. -m  Move files into a ZIP file
  666.  
  667.     This option will add files to a new OR existing ZIP file then
  668.     automatically DELETE the original or source file.
  669.  
  670.     The Move option is similar to the  -a  Add  command option except
  671.     that it automatically deletes the original files.  This is a REAL
  672.     TIME SAVER, for example, when compressing an entire directory.  The
  673.     m  option compresses all your files into a single ZIP file, then
  674.     deletes the original files.
  675.  
  676.     The deletion is completed after the program verifies the ZIP file
  677.     for accuracy.  If an error does occur, such as DISK FULL, the
  678.     original files will NOT be deleted.
  679.  
  680.      C:\DB> PKZIP  tiny.ZIP  *.dbf -m
  681.  
  682.     In this example, all the database files will be compressed into
  683.     tiny.ZIP and then will be erased from the /DB directory.
  684.  
  685.     The -m option is often used in combination with either the -f or -u
  686.     options.
  687.  
  688.  
  689. -d  Delete files from WITHIN a ZIP file
  690.  
  691.     This option will delete single or multiple files within a ZIP file
  692.     using any of the MS-DOS file handling descriptions.  The name of the
  693.     file will be displayed on the screen as it is being deleted.
  694.  
  695.      C:>PKZIP -d  OldFile.ZIP   Garbage.Txt  Useless.Dbf
  696.  
  697.     In this sample, Garbage.Txt and Useless.Dbf will be deleted from the
  698.     numerous files in OldFile.ZIP
  699.  
  700.  
  701. -v[r/s/d/n]  View technical information about a ZIP file
  702.  
  703.     This option will display technical information about the files
  704.     contained within a ZIP file.  (The -vt option, explained below, will
  705.     display even more technical information.)  The information will be
  706.     sorted and displayed in the order you indicate.
  707.  
  708.  
  709. The following sorting options are available:
  710.  
  711. r = Ratio of compression, smallest to largest
  712. s = Size of files, smallest to largest
  713. d = date of files, oldest to most recent
  714. n = name of files, alphabetically
  715.  
  716. If no sorting option is specified, the files will be displayed in the
  717. order they were compressed.
  718.  
  719. The following information will be displayed about EACH file found inside
  720. of the ZIP file:
  721.  
  722.             Length      Original length of the file
  723.             Method      Type of file compression used
  724.             Size        Size of the compressed file
  725.             Ratio       Percent reduction in file size
  726.             Date        Actual date of the file
  727.             Time        Actual time of the file
  728.             Name        Name of the file
  729.  
  730. The following example will illustrate the technical information
  731. displayed when a ZIP file is viewed using the -v option.  The actual
  732. output is shown below.  It will be scrolled on the screen.  This output
  733. is sorted alphabetically by name.
  734.  
  735. C:\WORD\PK> PKZIP -vn zipdoc
  736.  
  737.  
  738.  Length   Method   Size   Ratio   Date    Time   Name
  739.  -------  ------   ------ -----   ----    ----   ----
  740.    15872  Shrunk     8015  50%  02-05-89  14:45  BETA.DOC
  741.     1270  Shrunk      801  37%  01-11-89  00:12  BUGREP.DOC
  742.     1024  Shrunk      530  49%  02-05-89  14:44  CONTENTS.DOC
  743.     1622  Shrunk      917  44%  01-11-89  00:15  DISCLAIM.DOC
  744.     5382  Shrunk     2731  50%  01-11-89  00:25  EXTRACT.DOC
  745.     9728  Shrunk     4889  50%  02-06-89  21:35  FORMAT.DOC
  746.  -------          -------  ---                   --------
  747.    34898            17883  47%                         6
  748.  
  749.  
  750. -vt[r/s/d/n]  View additional technical information about a ZIP file
  751.  
  752.     This option will display even more technical information about the
  753.     files contained within a ZIP file.  This option lists the files
  754.     individually in a long format.  (The -v option will display slightly
  755.     less information, and is explained above.)  The information will be
  756.     sorted and displayed in the order you indicate.
  757.  
  758. The following sorting options are available:
  759.  
  760. r = Ratio of compression, smallest to largest
  761. s = Size of files, smallest to largest
  762. d = date of files, oldest to most recent
  763. n = name of files, alphabetically
  764.  
  765. If no sorting option is specified, the files will be displayed in the
  766. order they were compressed.
  767.  
  768.  
  769. The following information will be displayed about EACH file found inside of
  770. the ZIP file:
  771.  
  772.        Filename             Name of the file
  773.        Date and Time        Actual date and time of the file
  774.        Compression Method   Type of file compression used
  775.        Compressed Size      Reduced or compressed size of the file
  776.        Uncompressed Size    Original length of the file
  777.        32 bit CRC value     Numeric CRC value
  778.        Created by           The software and operating system used to
  779.                             create the ZIP file
  780.        Needed to extract    The software needed to extract the compressed
  781.                             files from the ZIP file
  782.  
  783. The following example will illustrate the technical information
  784. displayed when a ZIP file is viewed using the -vt option.  A portion of
  785. the actual output is shown below.  It will be scrolled on the screen.
  786. The information listed below will be repeated for each file in the ZIP
  787. file.
  788.  
  789. C:\PK>PKZIP  zipdoc -vt
  790.  
  791.  
  792.           Filename: SDK.DOC
  793.      Date and Time: Feb 06,1989  10:23:20
  794. Compression Method: Shrunk
  795.    Compressed Size:     1379
  796.  Uncompressed Size:     2560
  797.   32 bit CRC value: 05b27d12
  798.         Created by:   PKZIP: 1.0 under MS-DOS
  799.  Needed to extract: PKUNZIP: 1.0
  800.  
  801.  
  802. -z  Create a Zipcomment
  803.  
  804.     This option allows you to create a descriptive label for your ZIP
  805.     files.  The Zipcomment will then automatically be displayed by PKZIP
  806.     or PKUNZIP whenever the specific ZIP file is processed.
  807.  
  808.     When you type in the command, as shown below, you will be prompted
  809.     to enter the Zipcomment.  It can be up to 32 characters long.  The
  810.     -z option can also be used to edit an existing Zipcomment.
  811.  
  812.     The  -z  option can be used alone on an EXISTING ZIP file or in
  813.     combination with any of the add/update commands.
  814.  
  815. C:\PK>PKZIP  zipdoc -z
  816.  
  817.     After entering the above command, the program will prompt you to
  818.     type in a Zipcomment.  After entering the Zipcomment, press the
  819.     <Enter> key to save it.
  820.  
  821.  
  822. -b[path]  Create a temporary ZIP file on an alternate drive and path
  823.  
  824.     This option is designed to be used when insufficient disk space is a
  825.     problem.  Every time a ZIP file is updated, PKZIP creates a new
  826.     pre-ZIP file.  When the updating is completed, the original ZIP file
  827.     is automatically deleted and the pre-ZIP file becomes the new ZIP
  828.     file.  The result of this operation is that you need disk storage
  829.     space equal to at least twice the actual size of the ZIP file while
  830.     updating the ZIP file.
  831.  
  832.     Disk space is generally not a problem on a hard disk, but can pose
  833.     restrictions on a floppy disk.  If adequate disk space is not
  834.     available, the program will stop.
  835.  
  836.     The -b option will locate the pre-ZIP file on the path and location
  837.     specified.  This file is used only in the process of updating the
  838.     original ZIP file.  It will replace the original ZIP file and will
  839.     NOT exist on the location specified in the -b option, when the
  840.     update process is completed.  The -b option can be used along with
  841.     any of the update options.
  842.  
  843. C:>PKZIP a:zipdoc *.doc -bc: -u
  844.  
  845.     The above example illustrates the use of the -b option.  A ZIP file,
  846.     zipdoc, located on drive A will be updated with all the .doc files.
  847.     A temporary ZIP file, used in the update process will be located on
  848.     the C drive.  This file will not exist when the update process is
  849.     completed.
  850.  
  851.  
  852. -e[a/b][n]  Extra compression options
  853.  
  854.     This option is used to specify a slower but more efficient
  855.     compression algorithm.  The command parameters are defined below.
  856.  
  857. -e   Specifies the extra compression method.  This method is known as
  858.      Reducing.  If the -e option is not specified, the default method of
  859.      compression is Shrinking.
  860.  
  861.   a/b
  862.     
  863.       The a and b parameters specify that the extra compression is to be
  864.       applied to either ASCII or Binary files.  If you want to use the
  865.       extra compression method on ASCII files enter  -ea.  If you want
  866.       to use the extra compression method on Binary files, enter -eb.
  867.       If only -e is specified, b is the default file type.  (i.e. -eb = -e)
  868.  
  869.     The a and b options cannot be mixed in the same command.  For
  870.     example if you want to enable extra compression for both ASCII and
  871.     Binary files, two options are needed (i.e. -ea3 -eb2, but NOT -eab4).
  872.  
  873.   n
  874.  
  875.     This is the compression factor.  It is any number from 1 to 4.
  876.     Generally 4 provides the best compression, but is the slowest.  This
  877.     is displayed in the chart below.
  878.  
  879. n=1  fastest process time, good compression
  880. n=2  (between n=1 and n=4)  Default value
  881. n=3  (between n=1 and n=4)
  882. n=4  slowest process time, best compression
  883.  
  884. The compression and process time ratings listed above are generally
  885. true.  However, for example, it is possible for n=2 to compress better
  886. than n=3, though this is highly unlikely.  The resulting compression and
  887. process time is dependent on the contents of the files.
  888.  
  889. If no compression factor is specified the default value is 2.
  890. (i.e. -ea = -ea2)
  891.  
  892.  
  893. For binary files, specifying a compression option of  -eb2  will usually
  894. provide an optimal balance of compression and performance.  While
  895. Reducing generally results in better compression than Shrinking, it is
  896. possible although unlikely, that Shrinking could compress better than
  897. Reducing for a given file.  Also, while Reducing is generally slower
  898. than Shrinking, extraction of Reduced files is usually much faster than
  899. the extraction of Shrunk files.
  900.  
  901. Some example commands are shown below.
  902.  
  903.  
  904. C:>PKZIP zipdoc *.* -eb
  905.  
  906. This command would Shrink the ASCII files and Reduce the Binary files
  907. with a compression factor of 2.  (This option usually provides optimum
  908. overall speed and compression.)
  909.  
  910.  
  911. C:>PKZIP -ea1 zipdoc  -eb
  912.  
  913. This command would Reduce the ASCII files with a compression of 1 and
  914. Reduce the Binary files with a compression factor of 2.
  915.  
  916.  
  917. -p  Store relative paths with filenames in the ZIP file
  918.  
  919. This command allows you to store the directory and path information
  920. pertaining to each file within the ZIP file.  It is meaningful only when
  921. used with the  -r  option explained below.
  922.  
  923.  
  924. -r  Recurse through subdirectories
  925.  
  926. This command allows you more flexibility when creating or updating ZIP
  927. files.  The program will recurse through specified directories when
  928. obtaining files to compress.
  929.  
  930. For example:  PKZIP alldoc -r  D:*.doc  C:\word\pk\*.txt
  931.  
  932. This command will search all .DOC files on the D drive and all .TXT
  933. files on the C:\word\pk directory and all directories below.
  934.  
  935. An entire directory tree can be compressed into a ZIP file and restored
  936. using the -p and -r options.  For example:  PKZIP -r -p stuff will
  937. compress all the files in the current directory, and all directories
  938. below the current subdirectory.  PKUNZIP  can then restore this
  939. directory tree either in the same directory, or at any place in the
  940. directory tree.  (See the -d option for PKUNZIP, Section 4.)
  941.  
  942.  
  943. By default, the filename only will be stored, unless the  -p  option is
  944. specified in the command line.  If the  -p  option is used, then the
  945. relative path will be stored.
  946.  
  947.  
  948. -l  Display the License screen.
  949.  
  950.     This command will display the software license agreement.
  951.  
  952. A:>PKZIP -l
  953.  
  954.  
  955. -h  Display help screen.
  956.  
  957.     This command will display a help screen whenever typed on the
  958.     command line.
  959.  
  960. D:\PKWARE> PKZIP -h
  961.  
  962.  
  963.  
  964.  
  965.                                                                   |
  966.                                                                   |
  967.                                                                   |
  968.                         PKUNZIP - RECONSTRUCT & EXTRACT ZIP FILES |
  969.                                                                   |
  970.                              QUICK START - Reconstruct a zip File |
  971.                                    Description of Command Options |
  972.                                                                   |
  973.                                                                   |
  974.                                                                   |
  975.  
  976.  
  977. QUICK START - RECONSTRUCTING A ZIP FILE
  978.  
  979. This section will describe some simple examples, illustrating the
  980. command format for reconstructing or extracting files from a ZIP file.
  981.  
  982. _________________________________________________________________________
  983. |                                                                       |
  984. |                            QUICK START                                |
  985. |                    How to Reconstruct a ZIP file                      |
  986. |                                                                       |
  987. |      A ZIP file is one which holds much information in a greatly      |
  988. |      reduced space.  Use the PKUNZIP program to reconstruct, or       |
  989. |      extract compressed files from a ZIP file.  An entire ZIP file    |       |      can be reconstructed, or specific files can be delegated to be   |
  990. |      extracted.                                                       |
  991. |                                                                       |
  992. | There are five main parameters in the PKUNZIP command:                |
  993. |                                                                       |
  994. |    1. The actual program name          PKUNZIP                        |
  995. |                                                                       |
  996. |    2. The command options (optional)   letter commands                |
  997. |                                        example:  -v = view files      |
  998. |                                                                       |
  999. |    3.  The ZIP file name               AnyFile.ZIP                    |
  1000. |                                                                       |
  1001. |    4.  The destination where you want  Default = directory            |
  1002. |        the extracted information to    where program is started       |
  1003. |        be located (optional)                                          |
  1004. |                                                                       |
  1005. |    5.  Selected files to be extracted  Default = *.*                  |
  1006. |        (optional)                                                     |
  1007. |                                                                       |
  1008. |  Examples:                                                            |
  1009. |                                                                       |
  1010. |    C:>PKUNZIP  AnyFile.ZIP  A:                                        |
  1011. |                                                                       |
  1012. |    This command will reconstruct all the files in the ZIP file        |
  1013. |    AnyFile.ZIP.  It will locate extracted files on the A drive.       |
  1014. |            C:>PKUNZIP  AnyFile.ZIP   A:                               |
  1015. |                                                                       |
  1016. |                                                                       |
  1017. |    C:>PKUNZIP  A:AnyFile.ZIP  *.c                                     |
  1018. |                                                                       |
  1019. |    In this example the ZIP file located in the A drive will be        |
  1020. |    reconstructed on the C drive.  The destination is the C drive      |
  1021. |    by default.  Only the C files will be extracted.                   |
  1022. |                                                                       |
  1023. |                                                                       |
  1024. |    C:>PKUNZIP \Collect\AnyFile.ZIP  A:  -t                            |
  1025. |                                                                       |
  1026. |    In this example, the path location of the ZIP file is specified.   |
  1027. |    The files will be reconstructed on the A drive.  Also, the ZIP     |
  1028. |    file will be tested (the  -t  option) to determine whether it      |
  1029. |    has been corrupted.                                                |
  1030. |_______________________________________________________________________|
  1031.  
  1032. Description of Command Options
  1033.  
  1034.  
  1035. The command options used in reconstructing a ZIP file will be explained
  1036. in detail in this section.  You will find that the new command format is
  1037. much more flexible and easier to use.  Listed below is a summary of
  1038. important facts to keep in mind while using PKUNZIP.
  1039.  
  1040. - The command options can generally be placed anywhere on the command  line.
  1041. - The first filename listed on the command line will be interpreted as the
  1042.   ZIP file to be reconstructed.  Subsequent filenames will be interpreted
  1043.   as specific files to be extracted.
  1044. - The command can be typed using either upper case, lower case, or any
  1045.   combination.
  1046. - All command options must be preceded by a '-' character  (i.e. -v)
  1047.   or the MS-DOS switch character, usually '/'.
  1048. - Most options except where noted can be combined (i.e. "-x -y" or "-xy").
  1049. - The default values for the command line are as follows:
  1050. - If no options are entered, the default is -x, the extract files option.
  1051. - If no extension is specified for the ZIP file the .ZIP extension is assumed.
  1052. - If no destination is specified for the extracted files, they will be
  1053.   located in directory that the program is being run from.
  1054. - If no file specs (filenames, with or without wildcards) are listed, the
  1055.   default is *.*.
  1056.  
  1057.  
  1058.  
  1059. The following table lists all the options valid with the PKZIP command.
  1060. A brief summary is also given in the table.  The options are explained
  1061. in detail, along with programming examples, following the table.
  1062.  
  1063.  
  1064. Table 4-1   pkunzip Command Options
  1065.  
  1066. Option         Summary
  1067.  
  1068. -c[m]          Extracts files to the console [with more]
  1069.  
  1070. -d             Uses the pathnames stored in the ZIP file and creates
  1071.                the paths on extraction if they do not already exist.
  1072.  
  1073. -e             Executes a file from within a ZIP file.  Not
  1074.                implemented in initial release.
  1075.  
  1076. -g             Decrypts files.  Not implemented in initial release.
  1077.  
  1078. -h             Displays a help screen.
  1079.  
  1080. -l             Displays the license agreement.
  1081.  
  1082. -n             Extracts files from the ZIP file only if they are newer
  1083.                than the ones already on the disk.
  1084.  
  1085. -o             Overwrites existing files without asking for
  1086.                confirmation.
  1087.  
  1088. -p[a/b][c][n]  Extracts files to a printer.
  1089.  
  1090. -t             Tests the ZIP file for corruption.
  1091.  
  1092. -v[r/s/d/n]    Views technical information about files in the ZIP
  1093.                file.  The files will be sorted by compression Ratio,
  1094.                Size, Date, or alphabetically by Name.
  1095.  
  1096. -x             Extract files from the ZIP file.
  1097.  
  1098.  
  1099.  
  1100. This section will give a detailed explanation of the command options
  1101. used in the PKUNZIP command.  Recall that except where noted, several
  1102. options can be combined on the command line, and the options can be
  1103. placed in any order.
  1104.  
  1105. The command options are explained in groups determined by function.  The
  1106. options pertaining to extracting ZIP files are explained first, followed
  1107. by the view options, print options, and miscellaneous options.
  1108.  
  1109.  
  1110.  
  1111. -x  Extracts files from a ZIP file
  1112.  
  1113. This command will extract files from a ZIP file.  Either the entire ZIP
  1114. file can be reconstructed or certain files can be specified to be
  1115. extracted.  The extracted files will be located in the current directory
  1116. unless you specify a destination.  The  -x  option is the default option
  1117. for the PKUNZIP command.  If no option is listed on the command  -x
  1118. will be assumed.
  1119.  
  1120. If a file being extracted already exists at the same destination where
  1121. the reconstructed files are being located, the program will prompt you
  1122. for confirmation before it overwrites the existing file.
  1123.  
  1124. C:\DB>PKUNZIP -x  A:lists.zip  *.dbf  *.txt
  1125.  
  1126. In the above example, all of the files with a .dbf or a .txt extension
  1127. will be extracted from the ZIP file called 'lists'.  The ZIP file is
  1128. located on the A drive.  When the noted files are extracted, they will
  1129. be located in the C:\DB directory.
  1130.  
  1131.  
  1132. -o  Extracts files from a ZIP file
  1133.  
  1134.     This command will extract files from a ZIP file and automatically
  1135.     overwrite any same-named files found in the destination where the
  1136.     reconstructed files are being located.  The program will NOT prompt
  1137.     you for confirmation before overwriting these files.
  1138.  
  1139.     Either the entire ZIP file can be reconstructed or certain files can
  1140.     be specified to be extracted.  The extracted files will be located
  1141.     in the current directory unless you specify a destination.
  1142.  
  1143. C:>PKUNZIP  D:\PKWARE> Zfile  *.doc -o
  1144.  
  1145.     In the above example, all of the files with a .doc extension will be
  1146.     extracted from the ZIP file called 'Zfile' (the .ZIP extension is
  1147.     assumed).  As the files are being extracted any files with the same
  1148.     name in the current directory will be automatically overwritten.
  1149.  
  1150.  
  1151. -c  Extracts files from a ZIP file and displays them on the screen
  1152.  
  1153.     This command will extract files from a ZIP file and display them on
  1154.     the monitor.  The extracted files will scroll continuously on the
  1155.     screen.  The software can be told to pause after each screen of output
  1156.     by using the -cm option.
  1157.  
  1158. A:>PKUNZIP  STUFF  -c  dates.doc
  1159.  
  1160.     In this example, the file 'dates.doc' will be extracted from the
  1161.     noted ZIP file, and displayed on the screen.
  1162.  
  1163. -n  Extracts only the new files from the ZIP file
  1164.  
  1165.     This command will extract files from the ZIP file only if they are
  1166.     newer than the same-named ones already on the disk, or if they do
  1167.     not already exist on the disk.  This option serves as an overwriting
  1168.     safeguard.  It will not allow an older version of a file in a ZIP
  1169.     file to overwrite a newer version on disk.  "Newer" is defined as
  1170.     the most recent time and date created.
  1171.  
  1172. C:>PKUNZIP -n  C:\DB\lists  *.dbf
  1173.  
  1174.     In this example, all of the files with a .dbf extension, that are
  1175.     dated more recently than any same-named files on disk, or that do
  1176.     not already exist on disk will be extracted from the ZIP file 'lists'.
  1177.  
  1178. -t  Test the ZIP file
  1179.  
  1180.     This option is used to test the files to make sure they are valid
  1181.     and have not been corrupted.  The files will be listed as they are being
  1182.     tested 'OK' will listed after each file if it is not corrupted.
  1183.  
  1184. C:\WORD\PK> pkunzip  zipdoc  *.doc -t
  1185.  
  1186.     In the above example all the .DOC files will be tested from the
  1187.     ZIP file 'zipdoc.zip'.
  1188.  
  1189. -v[r/s/d/n]  View technical information about a ZIP file
  1190.  
  1191.     This option will display technical information about the files
  1192.     contained within a ZIP file.  The view options can also be evoked in
  1193.     the PKZIP command.
  1194.  
  1195.     The information will be sorted and displayed in the order you
  1196.     indicate.  The following options are available:
  1197.  
  1198.     r = Ratio of compression, smallest to largest
  1199.     s = Size of files, smallest to largest
  1200.     d = date of files, oldest to most recent
  1201.     n = name of files, alphabetically
  1202.  
  1203.     If no sorting option is specified, the files will be displayed in
  1204.     random order, the way they were compressed.
  1205.  
  1206.     The following information will be displayed about EACH file found
  1207.     inside of the ZIP file:
  1208.  
  1209.             Length      Original length of the file
  1210.             Method      Type of file compression used
  1211.             Size        Reduced or compressed size of the file
  1212.             Ratio       Percent reduction in file size
  1213.             Date        Actual date of the file
  1214.             Time        Actual time of the file
  1215.             Name        Name of the file
  1216.  
  1217.     The following example will illustrate the technical information
  1218.     displayed when a ZIP file is viewed using the -v option.  The actual
  1219.     output is shown below.  It is sorted alphabetically by name.
  1220.  
  1221. c:\WORD\PK>PKUNZIP -vn zipdoc
  1222.  
  1223.  Length   Method   Size   Ratio   Date    Time   Name
  1224.  -------  ------   ------ -----   ----    ----   ----
  1225.    15872  Shrunk     8015  50%  02-05-89  14:45  BETA.DOC
  1226.     1270  Shrunk      801  37%  01-11-89  00:12  BUGREP.DOC
  1227.     1024  Shrunk      530  49%  02-05-89  14:44  CONTENTS.DOC
  1228.     1622  Shrunk      917  44%  01-11-89  00:15  DISCLAIM.DOC
  1229.     5382  Shrunk     2731  50%  01-11-89  00:25  EXTRACT.DOC
  1230.     9728  Shrunk     4889  50%  02-06-89  21:35  FORMAT.DOC
  1231.  -------          -------  ---                   --------
  1232.    34898            17883  47%                         6
  1233.  
  1234. -p[a/b][c][n]  Extracts files to a printer
  1235.  
  1236.     This option is used to extract files from a ZIP file and send them
  1237.     to a printer for printing.The command parameters are defined below.
  1238.     The parameters of the print option must be programmed together on
  1239.     the command line.  (i.e. -pac1 is correct,  -p -a -c1 is NOT
  1240.     correct.)
  1241.  
  1242. -p   Specifies the extract to printer option.
  1243.  
  1244.   a/b   The a and b parameters will set the printer device to either ASCII
  1245.     or Binary mode respectively.  If no mode is specified, whatever the
  1246.     default mode is for the device will be used.
  1247.  
  1248.     ASCII mode is commonly used to print text.  It will form feed after
  1249.     each file.
  1250.  
  1251.     Binary mode corresponds to the COPY command commonly used to send
  1252.     fonts or graphics to a laser printer.  It will not form feed after
  1253.     each file.
  1254.  
  1255.     The a and b options cannot be mixed in the same command.
  1256.  
  1257.   c   This option specifies the port that the data should be sent through.
  1258.       If c is included in the print option, this specifies a serial (COM)
  1259.       port is to be used.  If c is NOT included in the print option, this
  1260.       specifies a parallel (LPT) port is to be used.
  1261.  
  1262.   n   This is the number of the print port being used.  It can be any
  1263.       number from 1 to 4.  If no number is listed, 1 is assumed by
  1264.       default.
  1265.  
  1266. C:>PKUNZIP -pbc2  PICTURE.ZIP
  1267.  
  1268.     In the above example, the files compressed in the ZIP file 'PICTURE'
  1269.     will be extracted and printed in binary mode from the serial port
  1270.     COM2.
  1271.  
  1272. C:>PKUNZIP  stuff *.doc -p3
  1273.  
  1274. In the above example, all the .DOC files will be extracted from
  1275. STUFF.ZIP to the parallel port LPT3.
  1276.  
  1277. -d  Recreate directory paths upon extraction
  1278.  
  1279. This command option is uses the pathnames that have been stored in the
  1280. ZIP file.  The directory pathnames are stored in the ZIP file by the use
  1281. of  -p and -r options explained in the list of PKZIP command options
  1282. explained in Section 3.  If the stored output path does not exist at the
  1283. reconstruction destination, this command will create them as they are
  1284. stored in the ZIP file.
  1285.  
  1286. For example:  If the following directory tree exists on drive C.
  1287.  
  1288.      root----+-abc--+-dir1
  1289.           |      |
  1290.           |      +-dir2-+-dir3
  1291.           |             |
  1292.           +-xyz--       +-dir4
  1293.           |
  1294.           +-pdq
  1295.  
  1296. If you then executed: PKZIP -r -p  A:STUFF  C:\abc\*.*
  1297.  
  1298. If you then executed: PKUNZIP  -d  A:STUFF  C:\pdq\newabc
  1299.  
  1300. After the PKUNZIP command is processed, the C drive would then look like this:
  1301.  
  1302.      root----+-abc--+-dir1
  1303.           |      |
  1304.           |      +-dir2-+-dir3
  1305.           |             |
  1306.           +-xyz--       +-dir4
  1307.           |
  1308.           +-pdq--+-newabc-+-dir1
  1309.                  |
  1310.                  +-dir2-+-dir3
  1311.                         |
  1312.                         +-dir4
  1313.  
  1314.     All of the files originally in C:\ABC and its subdirectories (dir1,
  1315.     dir2, dir3, and dir4) have been restored to C:\PDQ\NEWABC, with the
  1316.     directory tree being recreated.
  1317.  
  1318.     If this -d option is not specified and pathnames have been stored in
  1319.     the ZIP file, only the filenames stored in the ZIP file will be
  1320.     used,  any pathnames will be ignored.
  1321.  
  1322.  
  1323. -h  Display help screen.
  1324.  
  1325.     This command will display a help screen whenever typed on the
  1326.     command line.  The help screen will also occur when a command has
  1327.     been entered incorrectly.
  1328.  
  1329. D:\PKWARE> PKZIP -h
  1330.  
  1331.  
  1332. -l  Display the License screen.
  1333.  
  1334.     This command will display the software license agreement.
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.                                                                   |
  1342.                                                                   |
  1343.                                 ZIP2EXE - SELF-EXTRACTION UTILITY |
  1344.                                                                   |
  1345.                                                                   |
  1346.                                                                   |
  1347.                                                                   |
  1348.                                                                   |
  1349.  
  1350.  
  1351.                    ZIP2EXE - SELF-EXTRACTION UTILITY
  1352.  
  1353.  
  1354. ZIP files can be reconstructed without PKUNZIP through the use of
  1355. Self-Extraction methods.  This is useful when you need to transfer
  1356. compressed files to a person who may not be familiar with file
  1357. compression and reconstruction procedures, or who does not have the
  1358. PKUNZIP program.  The self-extracting ZIP file is an executable file
  1359. with a .EXE extension.  By simply typing in the name of the
  1360. self-extracting ZIP file, the PKUNZIP reconstruction process will be
  1361. performed.
  1362.  
  1363. The ZIP2EXE file will create a Self-Extracting .EXE file from a ZIP file
  1364. while leaving the original ZIP file intact.  PKSFX.PRG must be in the
  1365. current directory or PATH when creating a Self-Extracting file.  The
  1366. program MAKESFX will create PKSFX.PRG from the distribution file.
  1367.  
  1368. Using the Self-Extraction utility is much simpler with the new ZIP2EXE
  1369. program than it has been with previous PKware software.  The following
  1370. example illustrates the process of creating a self-extracting ZIP file.
  1371.  
  1372.  
  1373.     ___________________________________________________________________
  1374.     |                                                                 |
  1375.     |              Creating a Self-Extracting ZIP file                |
  1376.     |                                                                 |
  1377.     |                                                                 |
  1378.     |    1.  Create the ZIP file using PKZIP.                         |
  1379.     |                                                                 |
  1380.     |    2.  Create the self-extracting ZIP file by entering:         |
  1381.     |                                                                 |
  1382.     |        C:\> ZIP2EXE  ZipFile                                    |
  1383.     |                                                                 |
  1384.     |    Where ZipFile is the name of the ZIP file you want to        |
  1385.     |    create the self-extracting file from.  The default           |
  1386.     |    extension is .ZIP if none is given.                          |
  1387.     |                                                                 |
  1388.     |    When the process is completed a message such as the one      |
  1389.     |    shown below will be displayed on the screen to let you       |
  1390.     |    the conversion has been successful.                          |
  1391.     |                                                                 |
  1392.     |    ZipFile.ZIP => ZipFile.EXE                                   |
  1393.     |_________________________________________________________________|
  1394.  
  1395. Self-Extracting .EXE files can be modified and tested etc. with the
  1396. PKZIP and PKUNZIP programs, and generally treated as ZIP files.
  1397.  
  1398.  
  1399.  
  1400.                                                                   |
  1401.                                                                   |
  1402.                                       SPECIAL HANDLING PROCEDURES |
  1403.                                                                   |
  1404.                                            How a ZIP File is Made |
  1405.                                      Use of a RAM Disk with PKZIP |
  1406.                                  LAN - Local Area Network Support |
  1407.                                 Creating a Pre-Selected File List |
  1408.                                             Batch File Processing |
  1409.                                                                   |
  1410.                                                                   |
  1411.                                                                   |
  1412.  
  1413.  
  1414.                          HOW A ZIP FILE IS MADE
  1415.  
  1416. PKZIP creates a temporary pre-ZIP file that has an extension of .!!!
  1417. such as in  OldFile.!!!  during the compressing process.  OldFile.!!! is
  1418. the upgraded version of OldFile.ZIP
  1419.  
  1420. When all of your files have been successfully compressed, the original
  1421. ZIP file is deleted and the file with the extension .!!! is simply
  1422. renamed with a new extension .ZIP.
  1423.  
  1424. It is FASTER to rename the temporary ZIP file than to copy it from
  1425. one disk drive to another.  The FASTEST way to create your ZIP files
  1426. is to do so from your largest disk drive.  The -b option is used to
  1427. locate the pre-ZIP file on an alternate drive location, when your disk
  1428. space is limited.
  1429.  
  1430.  
  1431.  
  1432.                       USE OF A RAM DISK WITH PKZIP
  1433.  
  1434. PKZIP swaps information on and off disk memory as it runs.  This process
  1435. is NOT the same as the physical creation of the NEW ZIP file.  The
  1436. default drive for this program activity is the drive from which the
  1437. program was executed.  You can speed up performance as well as gain disk
  1438. space by telling PKZIP which drive and/or subdirectory to use through a
  1439. DOS environmental string.  All routing can be directed to your RAM Disk
  1440. by using the  Set PKTMP command.
  1441.  
  1442.        C:>Set PKTMP=D:   --->  where "D:" refers to the RAM disk
  1443.  
  1444.  
  1445.  
  1446.                 LAN - LOCAL AREA NETWORK SUPPORT
  1447.  
  1448. Both PKZIP and PKUNZIP when opening files for read-only type access will
  1449. automatically open files in SHARE "deny write access" mode.  This
  1450. pertains to systems running with DOS 3.0 or above, so that files can be
  1451. read concurrently by other tasks.  PKZIP uses a unique filename for all
  1452. temporary files created.  This allows PKZIP to be run by concurrent
  1453. programs or on a network drive without any file contention or conflict.
  1454.  
  1455.  
  1456.  
  1457.                     CREATING A PRE-SELECTED FILE LIST
  1458.  
  1459. This option is used to create List Files to record file selections you
  1460. use frequently.  These List Files can then be typed on the command line
  1461. instead of typing all the file names separately.  List Files can be used
  1462. with all the PKZIP and PKUNZIP command options.
  1463.  
  1464.  
  1465. The procedure for creating List Files is somewhat easier with the new
  1466. PKware programs.  The following example illustrates the steps necessary
  1467. for creating List Files.
  1468.  
  1469.              __________________________________________________
  1470.              |                                                |
  1471.              |                 CREATE LIST                    |
  1472.              |                                                |
  1473.              |   1.  Create the list using a word processor   |
  1474.              |       or text editor.                          |
  1475.              |                                                |
  1476.              |   2.  Type in the names of the files you       |
  1477.              |       select using any MS-DOS file notation.   |
  1478.              |                                                |
  1479.              |   3.  Include the directory and path locations |
  1480.              |       of the files in the list.                |
  1481.              |                                                |
  1482.              |   4.  Save the List File under the name you    |
  1483.              |       choose.  There is no default extension.  |
  1484.              |                                                |
  1485.              |                                                |
  1486.              |    List File Name       Files Included         |
  1487.              |                                                |
  1488.              |      Group              letters.txt            |
  1489.              |                         C:\LOTUS               |
  1490.              |                         Account-?.Wks          |
  1491.              |                         C:\DB\Monthly.*        |
  1492.              |                         D:\*.WKS               |
  1493.              |________________________________________________|
  1494.  
  1495. How to Use the List:
  1496.  
  1497.      The List File is preceded by the @ symbol on the command line.  If the
  1498.      List File is not in the directory, the @ symbol is put BEFORE the PATH
  1499.      designation.
  1500.  
  1501.      The List File can be mixed with other options, examples are shown
  1502.      below.
  1503.  
  1504.             C:>PKUNZIP  -r  NewFile.ZIP   @Group
  1505.  
  1506.             C:>PKUNZIP  AnyFile.ZIP   Today.Txt  @Group  @Data
  1507.  
  1508.             C:>PKZIP  -u  MoreFile  @Group  @\LOTUS\Accounts
  1509.  
  1510.             C:>PKZIP  -a  OldFile   *.Dbf  @OldStuff
  1511.  
  1512.                USE OF PKWARE IN BATCH FILE PROCESSING
  1513.  
  1514. When running PKZIP and PKUNZIP with other applications, you can test if
  1515. the PKware experienced an error by using the DOS error level variable.
  1516. PKZIP and PKUNZIP return zero error level if no errors have occurred.
  1517.  
  1518. If an error has occurred, the software will return one of the following
  1519. error codes:
  1520.  
  1521.  
  1522.      PKZIP:    0    No error.
  1523.              1    Bad file name or file specification.
  1524.         2,3    Error in ZIP file.
  1525.              4-11    Insufficient Memory.
  1526.              12    No files were found to add to the ZIP file,
  1527.             or no files were specified for deletion.
  1528.              13    File not found.  The specified ZIP file
  1529.                  or list file was not found.
  1530.              14    Disk full.
  1531.              15    ZIP file is read-only and can not be modified.
  1532.              16    Bad or illegal parameters specified.
  1533.  
  1534.     PKUNZIP:    0    No error.
  1535.               1    Warning error (such as failed CRC check).
  1536.              2,3    Error in ZIP file.
  1537.              4-8    Insufficient Memory.
  1538.              9    File not found.  No ZIP files found.
  1539.              10    Bad or illegal parameters specified.
  1540.              50    Disk Full.
  1541.              51    Unexpected EOF in ZIP file.
  1542.  
  1543. NOTE:
  1544.  
  1545.   Please note that if testing errorlevels in a batch file that DOS tests
  1546.   the errorlevel not for equality, but for greater than or equal to.
  1547.   For example, if the software exits with an exit code of 10, errorlevel
  1548.   10 will be true, and so will errorlevel 9, errorlevel 8, and so on.
  1549.   Therefore, Errorlevel 0 will always test as true.  Therefore,
  1550.   errorlevels should be tested in descending order.
  1551.  
  1552. For example:
  1553.  
  1554.      pkunzip stuff -d d:\temp
  1555.      if errorlevel 51 goto err51
  1556.      if errorlevel 50 goto err50
  1557.      if errorlevel 10 goto err10
  1558.      if errorlevel 9 goto err9
  1559.      if errorlevel 4 goto err4
  1560.      if errorlevel 2 goto err2
  1561.      if errorlevel 1 goto err1
  1562.      echo No Error
  1563.      goto exit
  1564.      :err51
  1565.      echo Unexpected EOF
  1566.      goto exit
  1567.      :err50
  1568.      echo Disk Full
  1569.      goto exit
  1570.      .
  1571.      .
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.                                                                   |
  1579.                                                                   |
  1580.                                                                   |
  1581.                                       Registration and Background |
  1582.                                                                   |
  1583.                                                                   |
  1584.                                                                   |
  1585.  
  1586.  
  1587.                             Technical Support
  1588.  
  1589.  
  1590. If you have any further questions or comments about PKware File
  1591. Compression programs, contact:
  1592.  
  1593.          Mail
  1594.  
  1595.              PKware, Inc.
  1596.              7545 North Port Washington Road
  1597.              Glendale, WI  53217-3422
  1598.  
  1599.          BBS by Modem - 24 hour support
  1600.  
  1601.              1 - 414 - 352-7176
  1602.  
  1603.          Voice  9am to 5pm CST
  1604.  
  1605.              1 - 414 - 352-3670
  1606.  
  1607.  
  1608.  
  1609.  
  1610.                       Other Background Information
  1611.  
  1612.  
  1613. Phil Katz is a registered member of the Association of Shareware
  1614. Professionals.
  1615.  
  1616.  
  1617.     ___________________________________________________________________
  1618.     |                                                                 |
  1619.     |                         REGISTRATION                            |
  1620.     |                                                                 |
  1621.     |   If you find PKPZIP PKUNZIP, and PKSFX fast, easy, and con-    |
  1622.     |   venient to use, a partial registration of $25 would be        |
  1623.     |   appreciated.                                                  |
  1624.     |                                                                 |
  1625.     |   If you send $47 or more, you will receive, when available,    |
  1626.     |   a diskette with the next version of the software.             |
  1627.     |                                                                 |
  1628.     |   Please state the current version number of the software you   |
  1629.     |   are presently using.  Send check or money order to:           |
  1630.     |                                                                 |
  1631.     |                       PKware, Inc.                              |
  1632.     |                       7545 North Port Washington Raod           |
  1633.     |                       Glendale, WI  53217-3422                  |
  1634.     |_________________________________________________________________|
  1635.  
  1636.  
  1637.                             Software License
  1638.  
  1639. PKZIP (tm) FAST! Create/Update Utility
  1640. PKUNZIP (tm) FAST! Extract Utility
  1641. PKSFX (R) FAST! Self-Extract Utility
  1642. Copyright 1989 PKWARE Inc.  All Rights Reserved
  1643.  
  1644. PKSFX Registered U.S. Patent and Trademark Office
  1645.  
  1646.  
  1647. You are free to use, copy and distribute PKZIP, PKUNZIP, and PKSFX for
  1648. NONCOMMERCIAL use if:
  1649.  
  1650.            No fee is charged for use, copying or distribution.
  1651.  
  1652.                      It is not modified in any way.
  1653.  
  1654. Clubs and user groups may charge a nominal fee not to exceed ($10) for
  1655. expenses and handling while distributing PKZIP, PKUNZIP, and PKSFX.
  1656.  
  1657. Site licenses and commercial licenses for PKZIP, PKUNZIP, and PKSFX
  1658. are available.  Consult the file ORDER.DOC for more information
  1659. or write or call PKware for more information.
  1660.  
  1661.  
  1662. PKWARE hereby disclaims all warranties relating to this software, whether
  1663. express or implied, including without limitation any implied warranties
  1664. of merchantability or fitness for a particular purpose. PKWARE will not
  1665. be liable for any special, incidental, consequential, indirect or similar
  1666. damages due to loss of data or any other reason, even if PKWARE or an
  1667. agent of PKWARE has been advised of the possibility of such damages.  In
  1668. no event shall PKWARE's liability for any damages ever exceed the price
  1669. paid for the license to use software, regardless of the form of the
  1670. claim.  The person using the software bears all risk as to the quality
  1671. and performance of the software.
  1672.  
  1673.